﻿<ResourceDictionary x:Uid="ResourceDictionary_1" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:d="http://schemas.microsoft.com/expression/interactivedesigner/2006" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="d">
	
	<!-- SimpleStyles.XAML defines a set of control styles which are simplified starting points for creating your own controls -->
	
	<!-- Brushes : These are used to define the color for background, foreground, selection, enabled etc of all controls
	If you want to change the color of a control you can just chnage the brush; if you want to add a new shape or change arrangement then also edit the template -->
	
	<!-- NormalBrush is used as the Background for SimpleButton, SimpleRepeatButton -->
	<LinearGradientBrush x:Uid="LinearGradientBrush_1" x:Key="NormalBrush" EndPoint="0,1" StartPoint="0,0">
		<GradientStop x:Uid="GradientStop_1" Color="#EEE" Offset="0.0"/>
		<GradientStop x:Uid="GradientStop_2" Color="#CCC" Offset="1.0"/>
	</LinearGradientBrush>
	<LinearGradientBrush x:Uid="LinearGradientBrush_2" x:Key="NormalBorderBrush" EndPoint="0,1" StartPoint="0,0">
		<GradientStop x:Uid="GradientStop_3" Color="#CCC" Offset="0.0"/>
		<GradientStop x:Uid="GradientStop_4" Color="#444" Offset="1.0"/>
	</LinearGradientBrush>
	
	<!-- LightBrush is used for content areas such as Menu, Tab Control background -->
	<LinearGradientBrush x:Uid="LinearGradientBrush_3" x:Key="LightBrush" EndPoint="0,1" StartPoint="0,0">
		<GradientStop x:Uid="GradientStop_5" Color="#FFF" Offset="0.0"/>
		<GradientStop x:Uid="GradientStop_6" Color="#EEE" Offset="1.0"/>
	</LinearGradientBrush>
	
	<!-- MouseOverBrush is used for MouseOver in Button, Radio Button, CheckBox -->
	<LinearGradientBrush x:Uid="LinearGradientBrush_4" x:Key="MouseOverBrush" EndPoint="0,1" StartPoint="0,0">
		<GradientStop x:Uid="GradientStop_7" Color="#FFF" Offset="0.0"/>
		<GradientStop x:Uid="GradientStop_8" Color="#AAA" Offset="1.0"/>
	</LinearGradientBrush>
	
	<!-- PressedBrush is used for Pressed in Button, Radio Button, CheckBox -->
	<LinearGradientBrush x:Uid="LinearGradientBrush_5" x:Key="PressedBrush" EndPoint="0,1" StartPoint="0,0">
		<GradientStop x:Uid="GradientStop_9" Color="#BBB" Offset="0.0"/>
		<GradientStop x:Uid="GradientStop_10" Color="#EEE" Offset="0.1"/>
		<GradientStop x:Uid="GradientStop_11" Color="#EEE" Offset="0.9"/>
		<GradientStop x:Uid="GradientStop_12" Color="#FFF" Offset="1.0"/>
	</LinearGradientBrush>
	<LinearGradientBrush x:Uid="LinearGradientBrush_6" x:Key="PressedBorderBrush" EndPoint="0,1" StartPoint="0,0">
		<GradientStop x:Uid="GradientStop_13" Color="#444" Offset="0.0"/>
		<GradientStop x:Uid="GradientStop_14" Color="#888" Offset="1.0"/>
	</LinearGradientBrush>

	<!-- SelectedBackgroundBrush is used for the Selected item in ListBoxItem, ComboBoxItem-->
	<SolidColorBrush x:Uid="SolidColorBrush_1" x:Key="SelectedBackgroundBrush" Color="#DDD"/>	

	<!-- Disabled Brushes are used for the Disabled look of each control -->
	<SolidColorBrush x:Uid="SolidColorBrush_2" x:Key="DisabledForegroundBrush" Color="#888"/>
	<SolidColorBrush x:Uid="SolidColorBrush_3" x:Key="DisabledBackgroundBrush" Color="#EEE"/>
	<SolidColorBrush x:Uid="SolidColorBrush_4" x:Key="DisabledBorderBrush" Color="#AAA"/>

	<!-- Used for background of ScrollViewer, TreeView, ListBox, Expander, TextBox, Tab Control -->
	<SolidColorBrush x:Uid="SolidColorBrush_5" x:Key="WindowBackgroundBrush" Color="#FFF"/>
	
	<!-- DefaultedBorderBrush is used to show KeyBoardFocus -->
	<LinearGradientBrush x:Uid="LinearGradientBrush_7" x:Key="DefaultedBorderBrush" EndPoint="0,1" StartPoint="0,0">
		<GradientStop x:Uid="GradientStop_15" Color="#777" Offset="0.0"/>
		<GradientStop x:Uid="GradientStop_16" Color="#000" Offset="1.0"/>
	</LinearGradientBrush>

	<SolidColorBrush x:Uid="SolidColorBrush_6" x:Key="SolidBorderBrush" Color="#888"/>
	<SolidColorBrush x:Uid="SolidColorBrush_7" x:Key="LightBorderBrush" Color="#AAA"/>
	<SolidColorBrush x:Uid="SolidColorBrush_8" x:Key="LightColorBrush" Color="#DDD"/>
	
	<!-- Used for Checkmark, Radio button, TreeViewItem, Expander ToggleButton glyphs -->
	<SolidColorBrush x:Uid="SolidColorBrush_9" x:Key="GlyphBrush" Color="#444"/>
	
	
	<!-- Style and Template pairs are used to define each control Part -->
	<!-- The Style provides default values on the control; the Template gives the elements for each control -->
	
	<!-- SimpleButtonFocusVisual is used to show keyboard focus around a SimpleButton control -->
	<Style x:Uid="Style_1" x:Key="SimpleButtonFocusVisual">
		<Setter x:Uid="Setter_1" Property="Control.Template">
			<Setter.Value>
				<ControlTemplate x:Uid="ControlTemplate_1">
					<Border x:Uid="Border_1">
						<Rectangle x:Uid="Rectangle_1" Margin="2" Stroke="#60000000" StrokeThickness="1" StrokeDashArray="1 2"/>
					</Border>
				</ControlTemplate>
			</Setter.Value>
		</Setter>
	</Style>
	
	<!-- Simple Button - This control sets brushes on each state. Note that these brushes must be listed above since they are static resources -->
	<Style x:Uid="Style_2" x:Key="SimpleButton" TargetType="{x:Type Button}" BasedOn="{x:Null}">
		<Setter x:Uid="Setter_2" Property="FocusVisualStyle" Value="{DynamicResource SimpleButtonFocusVisual}"/>
		<Setter x:Uid="Setter_3" Property="Background" Value="{DynamicResource NormalBrush}"/>
		<Setter x:Uid="Setter_4" Property="BorderBrush" Value="{DynamicResource NormalBorderBrush}"/>
		<Setter x:Uid="Setter_5" Property="Template">
			<Setter.Value>
				<ControlTemplate x:Uid="ControlTemplate_2" TargetType="{x:Type Button}">
					
					<!-- We use Grid as a root because it is easy to add more elements to customize the button -->
					<Grid x:Uid="Grid" x:Name="Grid">
						<Border x:Uid="Border" x:Name="Border" Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Padding="{TemplateBinding Padding}"/>
						
						<!-- Content Presenter is where the text content etc is placed by the control -->
						<!-- The bindings are useful so that the control can be parameterized without editing the template -->
						<ContentPresenter x:Uid="ContentPresenter_1" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" Margin="{TemplateBinding Padding}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}" RecognizesAccessKey="True"/>
					</Grid>
					
					<!--Each state sets a brush on the Border in the template -->
					<ControlTemplate.Triggers>
						<Trigger x:Uid="Trigger_1" Property="IsKeyboardFocused" Value="true">
							<Setter x:Uid="Setter_6" Property="BorderBrush" Value="{DynamicResource DefaultedBorderBrush}" TargetName="Border"/>
						</Trigger>
						<Trigger x:Uid="Trigger_2" Property="IsMouseOver" Value="true">
							<Setter x:Uid="Setter_7" Property="Background" Value="{DynamicResource MouseOverBrush}" TargetName="Border"/>
						</Trigger>
						<Trigger x:Uid="Trigger_3" Property="IsPressed" Value="true">
							<Setter x:Uid="Setter_8" Property="Background" Value="{DynamicResource PressedBrush}" TargetName="Border"/>
							<Setter x:Uid="Setter_9" Property="BorderBrush" Value="{DynamicResource PressedBorderBrush}" TargetName="Border"/>
						</Trigger>
						<Trigger x:Uid="Trigger_4" Property="IsEnabled" Value="true"/>
						<Trigger x:Uid="Trigger_5" Property="IsEnabled" Value="false">
							<Setter x:Uid="Setter_10" Property="Background" Value="{DynamicResource DisabledBackgroundBrush}" TargetName="Border"/>
							<Setter x:Uid="Setter_11" Property="BorderBrush" Value="{DynamicResource DisabledBorderBrush}" TargetName="Border"/>
							<Setter x:Uid="Setter_12" Property="Foreground" Value="{DynamicResource DisabledForegroundBrush}"/>
						</Trigger>
					</ControlTemplate.Triggers>
				</ControlTemplate>
			</Setter.Value>
		</Setter>
	</Style>
	
	<Style x:Uid="Style_3" x:Key="RadioButtonFocusVisual">
		<Setter x:Uid="Setter_13" Property="Control.Template">
			<Setter.Value>
				<ControlTemplate x:Uid="ControlTemplate_3">
					<Border x:Uid="Border_2">
						<Rectangle x:Uid="Rectangle_2" Margin="15,0,0,0" Stroke="#60000000" StrokeThickness="1" StrokeDashArray="1 2"/>
					</Border>
				</ControlTemplate>
			</Setter.Value>
		</Setter>
	</Style>
	
	<Style x:Uid="Style_4" x:Key="CheckBoxFocusVisual">
		<Setter x:Uid="Setter_14" Property="Control.Template">
			<Setter.Value>
				<ControlTemplate x:Uid="ControlTemplate_4">
					<Border x:Uid="Border_3">
						<Rectangle x:Uid="Rectangle_3" Margin="15,0,0,0" Stroke="#60000000" StrokeThickness="1" StrokeDashArray="1 2"/>
					</Border>
				</ControlTemplate>
			</Setter.Value>
		</Setter>
	</Style>
	
	<!-- Simple CheckBox -->
	<Style x:Uid="Style_5" x:Key="SimpleCheckBox" TargetType="{x:Type CheckBox}">
		<Setter x:Uid="Setter_15" Property="SnapsToDevicePixels" Value="true"/>
		<Setter x:Uid="Setter_16" Property="FocusVisualStyle" Value="{DynamicResource CheckBoxFocusVisual}"/>
		<Setter x:Uid="Setter_17" Property="Background" Value="{DynamicResource NormalBrush}"/>
		<Setter x:Uid="Setter_18" Property="BorderBrush" Value="{DynamicResource NormalBorderBrush}"/>
		<Setter x:Uid="Setter_19" Property="Template">
			<Setter.Value>
				<ControlTemplate x:Uid="ControlTemplate_5" TargetType="{x:Type CheckBox}">
					
					<!-- BulletDecorator is used to provide baseline alignment between the checkmark and the Content -->
					<BulletDecorator x:Uid="BulletDecorator_1" Background="Transparent">
						<BulletDecorator.Bullet>
							<Grid x:Uid="Grid_1" Width="13" Height="13">
								<Border x:Uid="Border_4" x:Name="Border" Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}"/>
								<Path x:Uid="CheckMark" x:Name="CheckMark" Stroke="{DynamicResource GlyphBrush}" StrokeThickness="2" SnapsToDevicePixels="False" Data="M 0 0 L 13 13 M 0 13 L 13 0"/>
							</Grid>
						</BulletDecorator.Bullet>
						<ContentPresenter x:Uid="ContentPresenter_2" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" Margin="{TemplateBinding Padding}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}" RecognizesAccessKey="True"/>
					</BulletDecorator>
					
					<!-- This uses Visibility to hide and show the CheckMark on IsChecked -->
					<ControlTemplate.Triggers>
						<Trigger x:Uid="Trigger_6" Property="IsChecked" Value="false">
							<Setter x:Uid="Setter_20" Property="Visibility" Value="Collapsed" TargetName="CheckMark"/>
						</Trigger>
						<Trigger x:Uid="Trigger_7" Property="IsMouseOver" Value="true">
							<Setter x:Uid="Setter_21" Property="Background" Value="{DynamicResource MouseOverBrush}" TargetName="Border"/>
						</Trigger>
						<Trigger x:Uid="Trigger_8" Property="IsPressed" Value="true">
							<Setter x:Uid="Setter_22" Property="Background" Value="{DynamicResource PressedBrush}" TargetName="Border"/>
							<Setter x:Uid="Setter_23" Property="BorderBrush" Value="{DynamicResource PressedBorderBrush}" TargetName="Border"/>
						</Trigger>
						<Trigger x:Uid="Trigger_9" Property="IsEnabled" Value="false">
							<Setter x:Uid="Setter_24" Property="Background" Value="{DynamicResource DisabledBackgroundBrush}" TargetName="Border"/>
							<Setter x:Uid="Setter_25" Property="BorderBrush" Value="{DynamicResource DisabledBorderBrush}" TargetName="Border"/>
						</Trigger>
					</ControlTemplate.Triggers>
					
				</ControlTemplate>
			</Setter.Value>
		</Setter>
	</Style>
	
	<!-- Simple Radio Button -->
	<Style x:Uid="Style_6" x:Key="SimpleRadioButton" TargetType="{x:Type RadioButton}">
		<Setter x:Uid="Setter_26" Property="SnapsToDevicePixels" Value="true"/>
		<Setter x:Uid="Setter_27" Property="FocusVisualStyle" Value="{DynamicResource RadioButtonFocusVisual}"/>
		<Setter x:Uid="Setter_28" Property="Background" Value="{DynamicResource NormalBrush}"/>
		<Setter x:Uid="Setter_29" Property="BorderBrush" Value="{DynamicResource NormalBorderBrush}"/>
		<Setter x:Uid="Setter_30" Property="Template">
			<Setter.Value>
				<ControlTemplate x:Uid="ControlTemplate_6" TargetType="{x:Type RadioButton}">
				
					<!-- BulletDecorator is used to provide baseline alignment between the checkmark and the Content -->
					<BulletDecorator x:Uid="BulletDecorator_2" Background="Transparent">
						<BulletDecorator.Bullet>
							<Grid x:Uid="Grid_2" Width="13" Height="13">
								<Ellipse x:Uid="Ellipse_Border" x:Name="Ellipse_Border" Fill="{TemplateBinding Background}" Stroke="{TemplateBinding BorderBrush}" StrokeThickness="1"/>
								<Ellipse x:Uid="Ellipse_1" Margin="4" x:Name="CheckMark" Fill="{DynamicResource GlyphBrush}"/>
							</Grid>
						</BulletDecorator.Bullet>
						<ContentPresenter x:Uid="ContentPresenter_3" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" Margin="{TemplateBinding Padding}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}" RecognizesAccessKey="True"/>
					</BulletDecorator>
					
					<ControlTemplate.Triggers>
						<Trigger x:Uid="Trigger_10" Property="IsChecked" Value="false">
							<Setter x:Uid="Setter_31" Property="Visibility" Value="Collapsed" TargetName="CheckMark"/>
						</Trigger>
						<Trigger x:Uid="Trigger_11" Property="IsMouseOver" Value="true">
							<Setter x:Uid="Setter_32" Property="Fill" Value="{DynamicResource MouseOverBrush}" TargetName="Ellipse_Border"/>
						</Trigger>
						<Trigger x:Uid="Trigger_12" Property="IsPressed" Value="true">
							<Setter x:Uid="Setter_33" Property="Fill" Value="{DynamicResource PressedBrush}" TargetName="Ellipse_Border"/>
							<Setter x:Uid="Setter_34" Property="Stroke" Value="{DynamicResource GlyphBrush}" TargetName="Ellipse_Border"/>
						</Trigger>
						<Trigger x:Uid="Trigger_13" Property="IsEnabled" Value="false">
							<Setter x:Uid="Setter_35" Property="Fill" Value="{DynamicResource DisabledBackgroundBrush}" TargetName="Ellipse_Border"/>
							<Setter x:Uid="Setter_36" Property="Stroke" Value="#40000000" TargetName="Ellipse_Border"/>
							<Setter x:Uid="Setter_37" Property="Foreground" Value="#80000000"/>
						</Trigger>
						
					</ControlTemplate.Triggers>
				</ControlTemplate>
			</Setter.Value>
		</Setter>
	</Style>
	
	<!-- Simple Repeat Button - This is used by Simple ScrollBar for the up and down buttons -->
	<Style x:Uid="Style_7" x:Key="SimpleRepeatButton" d:IsControlPart="True" TargetType="{x:Type RepeatButton}" BasedOn="{x:Null}">
		<Setter x:Uid="Setter_38" Property="Background" Value="{DynamicResource NormalBrush}"/>
		<Setter x:Uid="Setter_39" Property="BorderBrush" Value="{DynamicResource NormalBorderBrush}"/>
		<Setter x:Uid="Setter_40" Property="Template">
			<Setter.Value>
				<ControlTemplate x:Uid="ControlTemplate_7" TargetType="{x:Type RepeatButton}">
					<Grid x:Uid="Grid_3">
						<Border x:Uid="Border_5" x:Name="Border" Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}"/>
						<ContentPresenter x:Uid="ContentPresenter" HorizontalAlignment="Center" x:Name="ContentPresenter" VerticalAlignment="Center" Content="{TemplateBinding Content}" ContentTemplate="{TemplateBinding ContentTemplate}" ContentTemplateSelector="{TemplateBinding ContentTemplateSelector}"/>
					</Grid>
					<ControlTemplate.Triggers>
						<Trigger x:Uid="Trigger_14" Property="IsKeyboardFocused" Value="true">
							<Setter x:Uid="Setter_41" Property="BorderBrush" Value="{DynamicResource DefaultedBorderBrush}" TargetName="Border"/>
						</Trigger>
						<Trigger x:Uid="Trigger_15" Property="IsMouseOver" Value="true">
							<Setter x:Uid="Setter_42" Property="Background" Value="{DynamicResource MouseOverBrush}" TargetName="Border"/>
						</Trigger>
						<Trigger x:Uid="Trigger_16" Property="IsPressed" Value="true">
							<Setter x:Uid="Setter_43" Property="Background" Value="{DynamicResource PressedBrush}" TargetName="Border"/>
							<Setter x:Uid="Setter_44" Property="BorderBrush" Value="{DynamicResource PressedBorderBrush}" TargetName="Border"/>
						</Trigger>
						<Trigger x:Uid="Trigger_17" Property="IsEnabled" Value="false">
							<Setter x:Uid="Setter_45" Property="Background" Value="{DynamicResource DisabledBackgroundBrush}" TargetName="Border"/>
							<Setter x:Uid="Setter_46" Property="BorderBrush" Value="{DynamicResource DisabledBorderBrush}" TargetName="Border"/>
							<Setter x:Uid="Setter_47" Property="Foreground" Value="{DynamicResource DisabledForegroundBrush}"/>
						</Trigger>
					</ControlTemplate.Triggers>
				</ControlTemplate>
			</Setter.Value>
		</Setter>
	</Style>
	
	<!-- Simple Thumb - The Thumb is the draggable part of the Scrollbar -->
	<Style x:Uid="Style_8" x:Key="SimpleThumbStyle" d:IsControlPart="True" TargetType="{x:Type Thumb}" BasedOn="{x:Null}">
		<Setter x:Uid="Setter_48" Property="Template">
			<Setter.Value>
				<ControlTemplate x:Uid="ControlTemplate_8" TargetType="{x:Type Thumb}">
					<Grid x:Uid="Grid_4" Margin="0,0,0,0" x:Name="Grid">
						<Rectangle x:Uid="Rectangle" HorizontalAlignment="Stretch" x:Name="Rectangle" VerticalAlignment="Stretch" Width="Auto" Height="Auto" RadiusX="2" RadiusY="2" Fill="{DynamicResource NormalBrush}" Stroke="{DynamicResource NormalBorderBrush}"/>
					</Grid>
					<ControlTemplate.Triggers>
						<Trigger x:Uid="Trigger_18" Property="IsFocused" Value="True"/>
						<Trigger x:Uid="Trigger_19" Property="IsMouseOver" Value="True"/>
						<Trigger x:Uid="Trigger_20" Property="IsEnabled" Value="False"/>
						<Trigger x:Uid="Trigger_21" Property="IsDragging" Value="True"/>
					</ControlTemplate.Triggers>
				</ControlTemplate>
			</Setter.Value>
		</Setter>
	</Style>
	
	<!-- Simple ScrollRepeatButton Style - This RepeatButton is used above and below the Thumb in the Scrollbar. They are set to transparent si that they do not show over the scrollbar -->
	<Style x:Uid="Style_9" x:Key="SimpleScrollRepeatButtonStyle" d:IsControlPart="True" TargetType="{x:Type RepeatButton}">
		<Setter x:Uid="Setter_49" Property="Background" Value="Transparent"/>
		<Setter x:Uid="Setter_50" Property="BorderBrush" Value="Transparent"/>
		<Setter x:Uid="Setter_51" Property="IsTabStop" Value="false"/>
		<Setter x:Uid="Setter_52" Property="Focusable" Value="false"/>
		<Setter x:Uid="Setter_53" Property="Template">
			<Setter.Value>
				<ControlTemplate x:Uid="ControlTemplate_9" TargetType="{x:Type RepeatButton}">
					<Grid x:Uid="Grid_5">
						<Rectangle x:Uid="Rectangle_4" Fill="{TemplateBinding Background}" Stroke="{TemplateBinding BorderBrush}" StrokeThickness="{TemplateBinding BorderThickness}"/>
					</Grid>
				</ControlTemplate>
			</Setter.Value>
		</Setter>
	</Style>
	
	<!-- Simple ScrollBar  This makes use of SimpleThumb, SimpleRepeatButton and SimpleScrollRepeatButton -->
	
	<Style x:Uid="Style_10" x:Key="SimpleScrollBar" TargetType="{x:Type ScrollBar}">
		<Setter x:Uid="Setter_54" Property="Stylus.IsFlicksEnabled" Value="false"/>
		<Setter x:Uid="Setter_55" Property="Foreground" Value="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}"/>
		<Setter x:Uid="Setter_56" Property="Template">
			<Setter.Value>
				<ControlTemplate x:Uid="ControlTemplate_10" TargetType="{x:Type ScrollBar}">
					<Grid x:Uid="GridRoot" x:Name="GridRoot" Width="{DynamicResource {x:Static SystemParameters.VerticalScrollBarWidthKey}}" Background="{TemplateBinding Background}">
						<Grid.RowDefinitions>
							<RowDefinition x:Uid="RowDefinition_1" MaxHeight="18"/>
							<RowDefinition x:Uid="RowDefinition_2" Height="0.00001*"/>
							<RowDefinition x:Uid="RowDefinition_3" MaxHeight="18"/>
						</Grid.RowDefinitions>
						
						<RepeatButton x:Uid="DecreaseRepeat" x:Name="DecreaseRepeat" Style="{DynamicResource SimpleRepeatButton}" Command="ScrollBar.LineUpCommand">
							<Grid x:Uid="Grid_6">
								<Path x:Uid="DecreaseArrow" x:Name="DecreaseArrow" Stroke="{TemplateBinding Foreground}" StrokeThickness="1" Data="M 0 4 L 8 4 L 4 0 Z"/>
							</Grid>
						</RepeatButton>
						
						<!-- Track is a special layout container which sizes the thumb and the repeat button which do jump scrolling either side of it -->
						<Track x:Uid="PART_Track" Grid.Row="1" x:Name="PART_Track" Orientation="Vertical" IsDirectionReversed="true">
							<Track.Thumb>
								<Thumb x:Uid="Thumb_1" Style="{DynamicResource SimpleThumbStyle}"/>
							</Track.Thumb>
							<Track.IncreaseRepeatButton>
								<RepeatButton x:Uid="PageUp" x:Name="PageUp" Style="{DynamicResource SimpleScrollRepeatButtonStyle}" Command="ScrollBar.PageDownCommand"/>
							</Track.IncreaseRepeatButton>
							<Track.DecreaseRepeatButton>
								<RepeatButton x:Uid="PageDown" x:Name="PageDown" Style="{DynamicResource SimpleScrollRepeatButtonStyle}" Command="ScrollBar.PageUpCommand"/>
							</Track.DecreaseRepeatButton>
						</Track>
						
						<RepeatButton x:Uid="IncreaseRepeat" Grid.Row="2" x:Name="IncreaseRepeat" Style="{DynamicResource SimpleRepeatButton}" Command="ScrollBar.LineDownCommand">
							<Grid x:Uid="Grid_7">
								<Path x:Uid="IncreaseArrow" x:Name="IncreaseArrow" Stroke="{TemplateBinding Foreground}" StrokeThickness="1" Data="M 0 0 L 4 4 L 8 0 Z"/>
							</Grid>
						</RepeatButton>
					</Grid>
					
					<!-- This uses a single template for ScrollBar and rotate it to be Horizontal
					It also changes the commands so that the it does Left and Right instead of Up and Down Commands -->
					<ControlTemplate.Triggers>
						<Trigger x:Uid="Trigger_22" Property="Orientation" Value="Horizontal">

							<!-- Rotate the ScrollBar from Vertical to Horizontal -->
							<Setter x:Uid="Setter_57" Property="LayoutTransform" TargetName="GridRoot">
								<Setter.Value>
									<RotateTransform x:Uid="RotateTransform_1" Angle="-90"/>
								</Setter.Value>
							</Setter>
							
							<!-- Track is bound to Orientation internally, so we need to rotate it back to Vertical -->
							<Setter x:Uid="Setter_58" TargetName="PART_Track" Property="Orientation" Value="Vertical"/>
					
							<!-- Change the commands to do Horizontal commands -->
							<Setter x:Uid="Setter_59" Property="Command" Value="ScrollBar.LineLeftCommand" TargetName="DecreaseRepeat"/>
							<Setter x:Uid="Setter_60" Property="Command" Value="ScrollBar.LineRightCommand" TargetName="IncreaseRepeat"/>
							<Setter x:Uid="Setter_61" Property="Command" Value="ScrollBar.PageLeftCommand" TargetName="PageDown"/>
							<Setter x:Uid="Setter_62" Property="Command" Value="ScrollBar.PageRightCommand" TargetName="PageUp"/>
						</Trigger>
					</ControlTemplate.Triggers>
				</ControlTemplate>
			</Setter.Value>
		</Setter>
	</Style>
	
	<!-- Simple ScrollViewer 
	ScrollViewer is a Grid control which has a ContentPresenter and a Horizontal and Vertical ScrollBar 
	It is used by ListBox, MenuItem, ComboBox, and TreeView -->
	<Style x:Uid="Style_11" x:Key="SimpleScrollViewer" TargetType="{x:Type ScrollViewer}" BasedOn="{x:Null}">
		<Setter x:Uid="Setter_63" Property="Template">
			<Setter.Value>
				<ControlTemplate x:Uid="ControlTemplate_11" TargetType="{x:Type ScrollViewer}">
					<Grid x:Uid="Grid_8" Background="{TemplateBinding Background}">
						<Grid.ColumnDefinitions>
							<ColumnDefinition x:Uid="ColumnDefinition_1" Width="*"/>
							<ColumnDefinition x:Uid="ColumnDefinition_2" Width="Auto"/>
						</Grid.ColumnDefinitions>
						<Grid.RowDefinitions>
							<RowDefinition x:Uid="RowDefinition_4" Height="*"/>
							<RowDefinition x:Uid="RowDefinition_5" Height="Auto"/>
						</Grid.RowDefinitions>
						<ScrollContentPresenter x:Uid="ScrollContentPresenter_1" Grid.Column="0" Grid.Row="0" Margin="{TemplateBinding Padding}" Content="{TemplateBinding Content}" ContentTemplate="{TemplateBinding ContentTemplate}" CanContentScroll="{TemplateBinding CanContentScroll}"/>
						
						<!-- The visibility of the ScrollBars is controlled by the implementation fo the control -->
						<ScrollBar x:Uid="PART_HorizontalScrollBar" Visibility="{TemplateBinding ComputedHorizontalScrollBarVisibility}" Grid.Column="0" Grid.Row="1" x:Name="PART_HorizontalScrollBar" Style="{DynamicResource SimpleScrollBar}" Orientation="Horizontal" Value="{Binding Path=HorizontalOffset, Mode=OneWay, RelativeSource={RelativeSource TemplatedParent}}" ViewportSize="{TemplateBinding ViewportWidth}" Minimum="0" Maximum="{TemplateBinding ScrollableWidth}" />
						<ScrollBar x:Uid="PART_VerticalScrollBar" Visibility="{TemplateBinding ComputedVerticalScrollBarVisibility}" Grid.Column="1" Grid.Row="0" x:Name="PART_VerticalScrollBar" Style="{DynamicResource SimpleScrollBar}" Orientation="Vertical" Value="{Binding Path=VerticalOffset, Mode=OneWay, RelativeSource={RelativeSource TemplatedParent}}" ViewportSize="{TemplateBinding ViewportHeight}" Minimum="0" Maximum="{TemplateBinding ScrollableHeight}" />
					</Grid>
				</ControlTemplate>
			</Setter.Value>
		</Setter>
	</Style>
	
	<!-- Simple ListBox - This uses SimpleScrollViewer to allow items to be scrolled and SimpleListBoxItem to define the look of each item -->
	<Style x:Uid="Style_12" x:Key="SimpleListBox" TargetType="{x:Type ListBox}">
		<Setter x:Uid="Setter_64" Property="SnapsToDevicePixels" Value="true"/>
		<Setter x:Uid="Setter_65" Property="Background" Value="{DynamicResource WindowBackgroundBrush}"/>
		<Setter x:Uid="Setter_66" Property="BorderBrush" Value="{DynamicResource SolidBorderBrush}"/>
		<Setter x:Uid="Setter_67" Property="ScrollViewer.HorizontalScrollBarVisibility" Value="Auto"/>
		<Setter x:Uid="Setter_68" Property="ScrollViewer.VerticalScrollBarVisibility" Value="Auto"/>
		<Setter x:Uid="Setter_69" Property="ScrollViewer.CanContentScroll" Value="True"/>
		<Setter x:Uid="Setter_70" Property="Template">
			<Setter.Value>
				<ControlTemplate x:Uid="ControlTemplate_12" TargetType="{x:Type ListBox}">
					<Grid x:Uid="Grid_9">
						<Border x:Uid="Border_6" x:Name="Border" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}"/>
						<ScrollViewer x:Uid="ScrollViewer_1" Margin="1" Style="{DynamicResource SimpleScrollViewer}" Focusable="false" Background="{TemplateBinding Background}">
							
							<!-- The StackPanel is used to display the children by setting IsItemsHost to be Trus -->
							<StackPanel x:Uid="StackPanel_1" Margin="2" IsItemsHost="true"/>
							
						</ScrollViewer>
					</Grid>
					<ControlTemplate.Triggers>
						<Trigger x:Uid="Trigger_23" Property="IsEnabled" Value="false">
							<Setter x:Uid="Setter_71" Property="Background" Value="{DynamicResource DisabledBackgroundBrush}" TargetName="Border"/>
							<Setter x:Uid="Setter_72" Property="BorderBrush" Value="{DynamicResource DisabledBorderBrush}" TargetName="Border"/>
						</Trigger>
						<Trigger x:Uid="Trigger_24" Property="IsGrouping" Value="true">
							<Setter x:Uid="Setter_73" Property="ScrollViewer.CanContentScroll" Value="false"/>
						</Trigger>
					</ControlTemplate.Triggers>
				</ControlTemplate>
			</Setter.Value>
		</Setter>
	</Style>
	
	<!-- Simple ListBoxItem - This is used for each Item in a ListBox. The item's content is placed in the ContentPresenter -->
	
	<Style x:Uid="Style_13" x:Key="SimpleListBoxItem" d:IsControlPart="True" TargetType="{x:Type ListBoxItem}">
		<Setter x:Uid="Setter_74" Property="SnapsToDevicePixels" Value="true"/>
		<Setter x:Uid="Setter_75" Property="OverridesDefaultStyle" Value="true"/>
		<Setter x:Uid="Setter_76" Property="Template">
			<Setter.Value>
				<ControlTemplate x:Uid="ControlTemplate_13" TargetType="{x:Type ListBoxItem}">
					<Grid x:Uid="Grid_10" SnapsToDevicePixels="true">
						<Border x:Uid="Border_7" x:Name="Border" Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}"/>
						<ContentPresenter x:Uid="ContentPresenter_4" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}"/>
					</Grid>
					<ControlTemplate.Triggers>
						
						<!-- Change IsSelected SelectedBackgroundBrush to set the selection color for the items -->
						<Trigger x:Uid="Trigger_25" Property="IsSelected" Value="true">
							<Setter x:Uid="Setter_77" Property="Background" Value="{DynamicResource SelectedBackgroundBrush}" TargetName="Border"/>
						</Trigger>
						
						<Trigger x:Uid="Trigger_26" Property="IsEnabled" Value="false">
							<Setter x:Uid="Setter_78" Property="Foreground" Value="{DynamicResource DisabledForegroundBrush}"/>
						</Trigger>
					</ControlTemplate.Triggers>
				</ControlTemplate>
			</Setter.Value>
		</Setter>
	</Style>
	
	<!-- Simple Expander ToggleButton - This Button is used by the Expander control. When it is toggled it switches visibility on the Up_Arrow and Down_Arrow -->
	<ControlTemplate x:Uid="ControlTemplate_14" x:Key="ExpanderToggleButton" TargetType="{x:Type ToggleButton}">
		<Grid x:Uid="Grid_11">
			<Rectangle x:Uid="Rectangle_5" Margin="0,0,0,0" x:Name="Rectangle" Fill="Transparent" Stroke="{DynamicResource NormalBorderBrush}"/>
			<Path x:Uid="Up_Arrow" HorizontalAlignment="Center" x:Name="Up_Arrow" VerticalAlignment="Center" Fill="{DynamicResource GlyphBrush}" Data="M 0 0 L 4 4 L 8 0 Z"/>
			<Path x:Uid="Down_Arrow" Visibility="Collapsed" HorizontalAlignment="Center" x:Name="Down_Arrow" VerticalAlignment="Center" Fill="{DynamicResource GlyphBrush}" Data="M 0 4 L 4 0 L 8 4 Z"/>
		</Grid>
		<ControlTemplate.Triggers>
			<Trigger x:Uid="Trigger_27" Property="IsMouseOver" Value="true">
				<Setter x:Uid="Setter_79" Property="Fill" Value="{DynamicResource MouseOverBrush}" TargetName="Rectangle"/>
			</Trigger>
			<Trigger x:Uid="Trigger_28" Property="IsPressed" Value="true">
				<Setter x:Uid="Setter_80" Property="Fill" Value="{DynamicResource PressedBrush}" TargetName="Rectangle"/>
			</Trigger>
			<Trigger x:Uid="Trigger_29" Property="IsChecked" Value="true">
				<Setter x:Uid="Setter_81" Property="Visibility" Value="Visible" TargetName="Down_Arrow"/>
				<Setter x:Uid="Setter_82" Property="Visibility" Value="Collapsed" TargetName="Up_Arrow"/>
			</Trigger>
			<Trigger x:Uid="Trigger_30" Property="IsEnabled" Value="False">
				<Setter x:Uid="Setter_83" Property="Fill" Value="{DynamicResource DisabledBackgroundBrush}" TargetName="Rectangle"/>
				<Setter x:Uid="Setter_84" Property="Stroke" Value="{DynamicResource DisabledBorderBrush}" TargetName="Rectangle"/>
				<Setter x:Uid="Setter_85" Property="Foreground" Value="{DynamicResource DisabledForegroundBrush}"/>
				<Setter x:Uid="Setter_86" Property="Fill" Value="{DynamicResource DisabledForegroundBrush}" TargetName="Up_Arrow"/>
			</Trigger>
		</ControlTemplate.Triggers>
	</ControlTemplate>
	
	<!-- Simple Expander 
	 This uses the Simpler ExpanderToggleButton. It sets Visibility on the ContentPresenter to expand
	 Limitations : The Simple Expander only expands down -->
	<Style x:Uid="Style_14" x:Key="SimpleExpander" TargetType="{x:Type Expander}">
		<Setter x:Uid="Setter_87" Property="Background" Value="{DynamicResource LightBrush}"/>
		<Setter x:Uid="Setter_88" Property="BorderBrush" Value="{DynamicResource NormalBorderBrush}"/>
		<Setter x:Uid="Setter_89" Property="Template">
			<Setter.Value>
				<ControlTemplate x:Uid="ControlTemplate_15" TargetType="{x:Type Expander}">
					<Grid x:Uid="Grid_12">
						<Grid.RowDefinitions>
							<RowDefinition x:Uid="RowDefinition_6" Height="Auto"/>
							<RowDefinition x:Uid="ContentRow" Height="*" x:Name="ContentRow"/>
						</Grid.RowDefinitions>
						<Border x:Uid="Border_8" Grid.Row="0" x:Name="Border" Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" CornerRadius="2,2,0,0">
							<Grid x:Uid="Grid_13">
								<Grid.ColumnDefinitions>
									<ColumnDefinition x:Uid="ColumnDefinition_3" Width="20"/>
									<ColumnDefinition x:Uid="ColumnDefinition_4" Width="*"/>
								</Grid.ColumnDefinitions>
								<ToggleButton x:Uid="ToggleButton_1" Template="{DynamicResource ExpanderToggleButton}" Background="{DynamicResource NormalBrush}" IsChecked="{Binding Path=IsExpanded, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}" OverridesDefaultStyle="True"/>
								<ContentPresenter x:Uid="ContentPresenter_5" Grid.Column="1" Margin="4" RecognizesAccessKey="True" ContentSource="Header"/>
							</Grid>
						</Border>
						<Border x:Uid="ExpandSite" Visibility="Collapsed" Grid.Row="1" x:Name="ExpandSite" Background="{DynamicResource WindowBackgroundBrush}" BorderBrush="{DynamicResource SolidBorderBrush}" BorderThickness="1,0,1,1" CornerRadius="0,0,2,2">
							<ContentPresenter x:Uid="ContentPresenter_6" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" Margin="{TemplateBinding Padding}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}" Focusable="false"/>
						</Border>
					</Grid>
					<ControlTemplate.Triggers>
						<Trigger x:Uid="Trigger_31" Property="IsExpanded" Value="True">
							<Setter x:Uid="Setter_90" Property="Visibility" Value="Visible" TargetName="ExpandSite"/>
						</Trigger>
						<Trigger x:Uid="Trigger_32" Property="IsEnabled" Value="False">
							<Setter x:Uid="Setter_91" Property="Background" Value="{DynamicResource DisabledBackgroundBrush}" TargetName="Border"/>
							<Setter x:Uid="Setter_92" Property="BorderBrush" Value="{DynamicResource DisabledBorderBrush}" TargetName="Border"/>
							<Setter x:Uid="Setter_93" Property="Foreground" Value="{DynamicResource DisabledForegroundBrush}"/>
						</Trigger>
					</ControlTemplate.Triggers>
				</ControlTemplate>
			</Setter.Value>
		</Setter>
	</Style>
	
	<!-- Simple ComboBox Toggle Button - This is used in ComboBox to expand and collapse the ComboBox Popup-->
	<ControlTemplate x:Uid="ControlTemplate_16" x:Key="ComboBoxToggleButton" TargetType="{x:Type ToggleButton}">
		<Grid x:Uid="Grid_14">
			<Grid.ColumnDefinitions>
				<ColumnDefinition x:Uid="ColumnDefinition_5"/>
				<ColumnDefinition x:Uid="ColumnDefinition_6" Width="20"/>
			</Grid.ColumnDefinitions>
			<Rectangle x:Uid="Rectangle_6" Grid.ColumnSpan="2" HorizontalAlignment="Stretch" x:Name="Rectangle" VerticalAlignment="Stretch" Width="Auto" Height="Auto" RadiusX="5" RadiusY="5" Fill="{DynamicResource NormalBrush}" Stroke="{DynamicResource NormalBorderBrush}"/>
			<Rectangle x:Uid="Rectangle_7" Grid.Column="0" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Width="Auto" Height="Auto" RadiusX="5" RadiusY="5" Fill="{DynamicResource WindowBackgroundBrush}" Stroke="{DynamicResource NormalBorderBrush}"/>
			<Path x:Uid="Arrow" Grid.Column="1" HorizontalAlignment="Center" x:Name="Arrow" VerticalAlignment="Center" Fill="{DynamicResource GlyphBrush}" Data="M 0 0 L 4 4 L 8 0 Z"/>
		</Grid>
		<ControlTemplate.Triggers>
			<Trigger x:Uid="Trigger_33" Property="IsMouseOver" Value="true">
				<Setter x:Uid="Setter_94" Property="Fill" Value="{DynamicResource MouseOverBrush}" TargetName="Rectangle"/>
			</Trigger>
			<Trigger x:Uid="Trigger_34" Property="IsChecked" Value="true">
				<Setter x:Uid="Setter_95" Property="Fill" Value="{DynamicResource PressedBrush}" TargetName="Rectangle"/>
			</Trigger>
			<Trigger x:Uid="Trigger_35" Property="IsEnabled" Value="False">
				<Setter x:Uid="Setter_96" Property="Fill" Value="{DynamicResource DisabledBackgroundBrush}" TargetName="Rectangle"/>
				<Setter x:Uid="Setter_97" Property="Stroke" Value="{DynamicResource DisabledBorderBrush}" TargetName="Rectangle"/>
				<Setter x:Uid="Setter_98" Property="Foreground" Value="{DynamicResource DisabledForegroundBrush}"/>
				<Setter x:Uid="Setter_99" Property="Fill" Value="{DynamicResource DisabledForegroundBrush}" TargetName="Arrow"/>
			</Trigger>
		</ControlTemplate.Triggers>
	</ControlTemplate>
	
	<!-- This is the area which contains the selected item in the ComboBox -->
	
	<ControlTemplate x:Uid="ControlTemplate_17" x:Key="ComboBoxTextBox" TargetType="{x:Type TextBox}">
		<!-- This must be named as PART_ContentHost -->
		<Border x:Uid="PART_ContentHost" x:Name="PART_ContentHost" Focusable="False" Background="{TemplateBinding Background}"/>
	</ControlTemplate>
	
	<!-- Simple ComboBox 
	This uses the ComboBoxToggleButton to expand and collapse a Popup control
	SimpleScrollViewer to allow items to be scrolled and SimpleComboBoxItem to define the look of each item 
	The Popup shows a list of items in a StackPanel-->
	
	<Style x:Uid="Style_15" x:Key="SimpleComboBox" TargetType="{x:Type ComboBox}">
		<Setter x:Uid="Setter_100" Property="SnapsToDevicePixels" Value="true"/>
		<Setter x:Uid="Setter_101" Property="Template">
			<Setter.Value>
				<ControlTemplate x:Uid="ControlTemplate_18" TargetType="{x:Type ComboBox}">
					<Grid x:Uid="Grid_15">
						<!-- The ToggleButton is databound to the ComboBox itself to toggle IsDropDownOpen -->
						<ToggleButton x:Uid="ToggleButton" Grid.Column="2" Template="{DynamicResource ComboBoxToggleButton}" x:Name="ToggleButton" Focusable="false" IsChecked="{Binding Path=IsDropDownOpen, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}" ClickMode="Press"/>
						<ContentPresenter x:Uid="ContentSite" HorizontalAlignment="Left" Margin="3,3,23,3" x:Name="ContentSite" VerticalAlignment="Center" Content="{TemplateBinding SelectionBoxItem}" ContentTemplate="{TemplateBinding SelectionBoxItemTemplate}" ContentTemplateSelector="{TemplateBinding ItemTemplateSelector}" IsHitTestVisible="False"/>
						
						<!-- The TextBox must be named PART_EditableTextBox or ComboBox will not recognize it -->
						<TextBox x:Uid="PART_EditableTextBox" Visibility="Hidden" Template="{DynamicResource ComboBoxTextBox}" HorizontalAlignment="Left" Margin="3,3,23,3" x:Name="PART_EditableTextBox" Style="{x:Null}" VerticalAlignment="Center" Focusable="True" Background="Transparent" IsReadOnly="{TemplateBinding IsReadOnly}"/>
						
						<!-- The Popup shows the list of items in the ComboBox. IsOpen is databound to IsDropDownOpen which is toggled via the ComboBoxToggleButton -->
						<Popup x:Uid="Popup" IsOpen="{TemplateBinding IsDropDownOpen}" Placement="Bottom" x:Name="Popup" Focusable="False" AllowsTransparency="True" PopupAnimation="Slide">
							<Grid x:Uid="DropDown" MaxHeight="{TemplateBinding MaxDropDownHeight}" MinWidth="{TemplateBinding ActualWidth}" x:Name="DropDown" SnapsToDevicePixels="True">
								<Border x:Uid="DropDownBorder" x:Name="DropDownBorder" Background="{DynamicResource WindowBackgroundBrush}" BorderBrush="{DynamicResource SolidBorderBrush}" BorderThickness="1"/>
								<ScrollViewer x:Uid="ScrollViewer_2" Margin="4,6,4,6" Style="{DynamicResource SimpleScrollViewer}" SnapsToDevicePixels="True" HorizontalScrollBarVisibility="Auto" VerticalScrollBarVisibility="Auto" CanContentScroll="True">
							
									<!-- The StackPanel is used to display the children by setting IsItemsHost to be True -->
									<StackPanel x:Uid="StackPanel_2" IsItemsHost="True" KeyboardNavigation.DirectionalNavigation="Contained"/>
								
								</ScrollViewer>
							</Grid>
						</Popup>
					</Grid>
					<ControlTemplate.Triggers>						
						<!-- This forces the DropDown to have a minimum size if it is empty -->
						<Trigger x:Uid="Trigger_36" Property="HasItems" Value="false">
							<Setter x:Uid="Setter_102" Property="MinHeight" Value="95" TargetName="DropDownBorder"/>
						</Trigger>
						<Trigger x:Uid="Trigger_37" Property="IsEnabled" Value="false">
							<Setter x:Uid="Setter_103" Property="Foreground" Value="{DynamicResource DisabledForegroundBrush}"/>
						</Trigger>
						<Trigger x:Uid="Trigger_38" Property="IsGrouping" Value="true">
							<Setter x:Uid="Setter_104" Property="ScrollViewer.CanContentScroll" Value="false"/>
						</Trigger>
						<Trigger x:Uid="Trigger_39" Property="AllowsTransparency" SourceName="Popup" Value="true">
							<Setter x:Uid="Setter_105" Property="CornerRadius" Value="4" TargetName="DropDownBorder"/>
							<Setter x:Uid="Setter_106" Property="Margin" Value="0,2,0,0" TargetName="DropDownBorder"/>
						</Trigger>
						<Trigger x:Uid="Trigger_40" Property="IsEditable" Value="true">
							<Setter x:Uid="Setter_107" Property="IsTabStop" Value="false"/>
							<Setter x:Uid="Setter_108" Property="Visibility" Value="Visible" TargetName="PART_EditableTextBox"/>
							<Setter x:Uid="Setter_109" Property="Visibility" Value="Hidden" TargetName="ContentSite"/>
						</Trigger>
					</ControlTemplate.Triggers>
				</ControlTemplate>
			</Setter.Value>
		</Setter>
	</Style>
	
	<!-- Simple ComboBoxItem - This is used for each item inside of the ComboBox. You can change the selected color of each item below-->
	<Style x:Uid="Style_16" x:Key="SimpleComboBoxItem" d:IsControlPart="True" TargetType="{x:Type ComboBoxItem}">
		<Setter x:Uid="Setter_110" Property="SnapsToDevicePixels" Value="true"/>
		<Setter x:Uid="Setter_111" Property="Template">
			<Setter.Value>
				<ControlTemplate x:Uid="ControlTemplate_19" TargetType="{x:Type ComboBoxItem}">
					<Grid x:Uid="Grid_16" SnapsToDevicePixels="true">
						<Border x:Uid="Border_9" x:Name="Border" Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}"/>
						<ContentPresenter x:Uid="ContentPresenter_7" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}"/>
					</Grid>
					<ControlTemplate.Triggers>
					
						<!-- Change IsHighlighted SelectedBackgroundBrush to set the selection color for the items -->
						<Trigger x:Uid="Trigger_41" Property="IsHighlighted" Value="true">
							<Setter x:Uid="Setter_112" Property="Background" Value="{DynamicResource SelectedBackgroundBrush}" TargetName="Border"/>
						</Trigger>
						
						<Trigger x:Uid="Trigger_42" Property="IsEnabled" Value="false">
							<Setter x:Uid="Setter_113" Property="Foreground" Value="{DynamicResource DisabledForegroundBrush}"/>
						</Trigger>
					</ControlTemplate.Triggers>
				</ControlTemplate>
			</Setter.Value>
		</Setter>
	</Style>
	
	<!-- Simple SimpleProgressBar
	 The template uses two Border controls to show the Track and Progress 
	 Limitations : It only supports a horizontal orientated ProgressBar -->
	<Style x:Uid="Style_17" x:Key="SimpleProgressBar" TargetType="{x:Type ProgressBar}">
		<Setter x:Uid="Setter_114" Property="Template">
			<Setter.Value>
				<ControlTemplate x:Uid="ControlTemplate_20" TargetType="{x:Type ProgressBar}">
					<Grid x:Uid="Grid_17">
					
						<!-- This Border is the track. It must be named PART_Track -->
						<Border x:Uid="Border_10" x:Name="PART_Track" Background="{DynamicResource PressedBrush}" BorderBrush="{DynamicResource SolidBorderBrush}" BorderThickness="1" CornerRadius="2"/>
						
						<!-- This Border shows progress. It must be named PART_Indicator for the control to function -->
						<Border x:Uid="PART_Indicator" HorizontalAlignment="Left" x:Name="PART_Indicator" Background="{DynamicResource MouseOverBrush}" BorderBrush="{DynamicResource NormalBorderBrush}" BorderThickness="1" CornerRadius="2"/>
					
					</Grid>
				</ControlTemplate>
			</Setter.Value>
		</Setter>
	</Style>
	
	<!-- Simple TextBox -->
	<Style x:Uid="Style_18" x:Key="SimpleTextBox" TargetType="{x:Type TextBox}">
		<Setter x:Uid="Setter_115" Property="KeyboardNavigation.TabNavigation" Value="None"/>
		<Setter x:Uid="Setter_116" Property="FocusVisualStyle" Value="{x:Null}"/>
		<Setter x:Uid="Setter_117" Property="AllowDrop" Value="true"/>
		<Setter x:Uid="Setter_118" Property="Template">
			<Setter.Value>
				<ControlTemplate x:Uid="ControlTemplate_21" TargetType="{x:Type TextBox}">
					<Grid x:Uid="Grid_18">
						<Border x:Uid="Border_11" x:Name="Border" Background="{DynamicResource WindowBackgroundBrush}" BorderBrush="{DynamicResource SolidBorderBrush}" BorderThickness="1" Padding="2" CornerRadius="2">
							
							<!-- The implementation places the Content into the ScrollViewer. It must be named PART_ContentHost for the control to function -->
							<ScrollViewer x:Uid="ScrollViewer_3" Margin="0" x:Name="PART_ContentHost" Style="{DynamicResource SimpleScrollViewer}" Background="{TemplateBinding Background}"/>
						
						</Border>
					</Grid>
					<ControlTemplate.Triggers>
						<Trigger x:Uid="Trigger_43" Property="IsEnabled" Value="False">
							<Setter x:Uid="Setter_119" Property="Background" Value="{DynamicResource DisabledBackgroundBrush}" TargetName="Border"/>
							<Setter x:Uid="Setter_120" Property="BorderBrush" Value="{DynamicResource DisabledBackgroundBrush}" TargetName="Border"/>
							<Setter x:Uid="Setter_121" Property="Foreground" Value="{DynamicResource DisabledForegroundBrush}"/>
						</Trigger>
					</ControlTemplate.Triggers>
				</ControlTemplate>
			</Setter.Value>
		</Setter>
	</Style>
	
	<!-- Simple Label - This template is just a ContentPresenter that shows the content of the Label -->
	<Style x:Uid="Style_19" x:Key="SimpleLabel" TargetType="{x:Type Label}">
		<Setter x:Uid="Setter_122" Property="HorizontalContentAlignment" Value="Left"/>
		<Setter x:Uid="Setter_123" Property="VerticalContentAlignment" Value="Top"/>
		<Setter x:Uid="Setter_124" Property="Template">
			<Setter.Value>
				<ControlTemplate x:Uid="ControlTemplate_22" TargetType="{x:Type Label}">
					<Grid x:Uid="Grid_19">
						<ContentPresenter x:Uid="ContentPresenter_8" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}" RecognizesAccessKey="True"/>
					</Grid>
					<ControlTemplate.Triggers>
						<Trigger x:Uid="Trigger_44" Property="IsEnabled" Value="false"/>
					</ControlTemplate.Triggers>
				</ControlTemplate>
			</Setter.Value>
		</Setter>
	</Style>
	
	<!-- Simple Menu - This template uses a StackPanel to layout MenuItems --> 
	<Style x:Uid="Style_20" x:Key="SimpleMenu" TargetType="{x:Type Menu}">
		<Setter x:Uid="Setter_125" Property="Background" Value="{DynamicResource LightBrush}"/>
		<Setter x:Uid="Setter_126" Property="BorderBrush" Value="{DynamicResource NormalBorderBrush}"/>
		<Setter x:Uid="Setter_127" Property="SnapsToDevicePixels" Value="True"/>
		<Setter x:Uid="Setter_128" Property="Template">
			<Setter.Value>
				<ControlTemplate x:Uid="ControlTemplate_23" TargetType="{x:Type Menu}">
					<Grid x:Uid="Grid_20">
						<Border x:Uid="Border_12" Margin="1" x:Name="Border" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}"/>
						<StackPanel x:Uid="StackPanel_3" Background="{TemplateBinding Background}" IsItemsHost="True" ClipToBounds="True" Orientation="Horizontal"/>
					</Grid>
					<ControlTemplate.Triggers>
						<Trigger x:Uid="Trigger_45" Property="IsEnabled" Value="False">
							<Setter x:Uid="Setter_129" Property="Background" Value="{DynamicResource DisabledBackgroundBrush}" TargetName="Border"/>
							<Setter x:Uid="Setter_130" Property="BorderBrush" Value="{DynamicResource DisabledBorderBrush}" TargetName="Border"/>
						</Trigger>
					</ControlTemplate.Triggers>
				</ControlTemplate>
			</Setter.Value>
		</Setter>
	</Style>
	
	<!-- This BitmapEffect is used by the Simple MenuItem -->
	<DropShadowBitmapEffect x:Uid="DropShadowBitmapEffect_1" x:Key="PopupDropShadow" ShadowDepth="1.5" Softness="0.15"/>
	
	<!-- Simple MenuItem - The template uses triggers to provide four different arrangements of menu item which are set via the Role property --> 
	<Style x:Uid="Style_21" x:Key="SimpleMenuItem" TargetType="{x:Type MenuItem}">
		<Setter x:Uid="Setter_131" Property="HorizontalContentAlignment" Value="{Binding Path=HorizontalContentAlignment, RelativeSource={RelativeSource AncestorType={x:Type ItemsControl}}}"/>
		<Setter x:Uid="Setter_132" Property="VerticalContentAlignment" Value="{Binding Path=VerticalContentAlignment, RelativeSource={RelativeSource AncestorType={x:Type ItemsControl}}}"/>
		<Setter x:Uid="Setter_133" Property="Background" Value="Transparent"/>
		<Setter x:Uid="Setter_134" Property="Foreground" Value="{DynamicResource {x:Static SystemColors.MenuTextBrushKey}}"/>
		<Setter x:Uid="Setter_135" Property="Template">
			<Setter.Value>
				<ControlTemplate x:Uid="ControlTemplate_24" TargetType="{x:Type MenuItem}">
					<Border x:Uid="Border_13" x:Name="Border" Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}">
						<Grid x:Uid="Grid_21">
							
							<!-- The Grid is used to hold together columns for an Icon, Content, Glyph checkmark and Arrow to show the next level
							 Size sharing is used in Grid so that the Icon, Content, Arrow for each MenuItem align together -->
							<Grid.ColumnDefinitions>
								<ColumnDefinition x:Uid="ColumnDefinition_7" MinWidth="17" Width="Auto" SharedSizeGroup="MenuItemIconColumnGroup"/>
								<ColumnDefinition x:Uid="ColumnDefinition_8" Width="*"/>
								<ColumnDefinition x:Uid="ColumnDefinition_9" Width="Auto" SharedSizeGroup="MenuItemIGTColumnGroup"/>
								<ColumnDefinition x:Uid="ColumnDefinition_10" Width="14"/>
							</Grid.ColumnDefinitions>
							
							<!-- ContentPresenter to show an Icon if needed -->
							<ContentPresenter x:Uid="Icon" Margin="4,0,6,0" x:Name="Icon" VerticalAlignment="Center" ContentSource="Icon"/>
							
							<!-- Glyph is a checkmark if needed for a checkable menu -->
							<Grid x:Uid="GlyphPanel" Visibility="Hidden" Margin="4,0,6,0" x:Name="GlyphPanel" VerticalAlignment="Center">
								<Path x:Uid="GlyphPanelpath" x:Name="GlyphPanelpath" VerticalAlignment="Center" Fill="{TemplateBinding Foreground}" Data="M0,2 L0,4.8 L2.5,7.4 L7.1,2.8 L7.1,0 L2.5,4.6 z" FlowDirection="LeftToRight"/>
							</Grid>
							
							<!-- Content for the menu text etc -->
							<ContentPresenter x:Uid="HeaderHost" Grid.Column="1" Margin="{TemplateBinding Padding}" x:Name="HeaderHost" RecognizesAccessKey="True" ContentSource="Header"/>
							
							<!-- Arrow drawn path which points to the next level of the menu -->
							<Grid x:Uid="ArrowPanel" Grid.Column="3" Margin="4,0,6,0" x:Name="ArrowPanel" VerticalAlignment="Center">
								<Path x:Uid="ArrowPanelPath" x:Name="ArrowPanelPath" VerticalAlignment="Center" Fill="{TemplateBinding Foreground}" Data="M0,0 L0,8 L4,4 z"/>
							</Grid>
							
							<!-- The Popup is the body of the menu which expands down or across depending on the level of the item -->
							<Popup x:Uid="SubMenuPopup" IsOpen="{Binding Path=IsSubmenuOpen, RelativeSource={RelativeSource TemplatedParent}}" Placement="Right" x:Name="SubMenuPopup" Focusable="false" AllowsTransparency="true" PopupAnimation="{DynamicResource {x:Static SystemParameters.MenuPopupAnimationKey}}" VerticalOffset="-3">
								<Grid x:Uid="SubMenu" x:Name="SubMenu">
									<Border x:Uid="SubMenuBorder" x:Name="SubMenuBorder" Background="{DynamicResource WindowBackgroundBrush}" BorderBrush="{DynamicResource SolidBorderBrush}" BorderThickness="1"/>
									
									<!-- StackPanel holds children of the menu. This is set bu IsItemsHost=True -->
									<StackPanel x:Uid="StackPanel_4" IsItemsHost="True" KeyboardNavigation.DirectionalNavigation="Cycle"/>
								</Grid>
							</Popup>
							
						</Grid>
					</Border>
					
					<!-- These triggers re-configure the four arrangements of MenuItem to show different levels of menu via Role -->
					<ControlTemplate.Triggers>
					
						<!-- Role = TopLevelHeader : this is the root menu item in a menu; the Popup expands down -->
						<Trigger x:Uid="Trigger_46" Property="Role" Value="TopLevelHeader">
							<Setter x:Uid="Setter_136" Property="Margin" Value="0,1,0,1"/>
							<Setter x:Uid="Setter_137" Property="Padding" Value="6,3,6,3"/>
							<Setter x:Uid="Setter_138" Property="Grid.IsSharedSizeScope" Value="true"/>
							<Setter x:Uid="Setter_139" Property="Placement" Value="Bottom" TargetName="SubMenuPopup"/>
							<Setter x:Uid="Setter_140" Property="Visibility" Value="Collapsed" TargetName="ArrowPanel"/>
						</Trigger>
						
						<!-- Role = TopLevelItem :  this is a child menu item from the top level without any child items-->
						<Trigger x:Uid="Trigger_47" Property="Role" Value="TopLevelItem">
							<Setter x:Uid="Setter_141" Property="Margin" Value="0,1,0,1"/>
							<Setter x:Uid="Setter_142" Property="Padding" Value="6,3,6,3"/>
							<Setter x:Uid="Setter_143" Property="Visibility" Value="Collapsed" TargetName="ArrowPanel"/>
						</Trigger>
						
						<!-- Role = SubMenuHeader : this is a child menu item which does not have children -->
						<Trigger x:Uid="Trigger_48" Property="Role" Value="SubmenuHeader">
							<Setter x:Uid="Setter_144" Property="DockPanel.Dock" Value="Top"/>
							<Setter x:Uid="Setter_145" Property="Padding" Value="0,2,0,2"/>
							<Setter x:Uid="Setter_146" Property="Grid.IsSharedSizeScope" Value="true"/>
						</Trigger>
						
						<!-- Role = SubMenuItem : this is a child menu item which has children-->
						<Trigger x:Uid="Trigger_49" Property="Role" Value="SubmenuItem">
							<Setter x:Uid="Setter_147" Property="DockPanel.Dock" Value="Top"/>
							<Setter x:Uid="Setter_148" Property="Padding" Value="0,2,0,2"/>
							<Setter x:Uid="Setter_149" Property="Visibility" Value="Collapsed" TargetName="ArrowPanel"/>
						</Trigger>
						<Trigger x:Uid="Trigger_50" Property="IsSuspendingPopupAnimation" Value="true">
							<Setter x:Uid="Setter_150" Property="PopupAnimation" Value="None" TargetName="SubMenuPopup"/>
						</Trigger>
						
						<!-- If no Icon is present the we collapse the Icon Content -->
						<Trigger x:Uid="Trigger_51" Property="Icon" Value="{x:Null}">
							<Setter x:Uid="Setter_151" Property="Visibility" Value="Collapsed" TargetName="Icon"/>
						</Trigger>
						
						<!-- The GlyphPanel contains the CheckMark -->
						<Trigger x:Uid="Trigger_52" Property="IsChecked" Value="true">
							<Setter x:Uid="Setter_152" Property="Visibility" Value="Visible" TargetName="GlyphPanel"/>
							<Setter x:Uid="Setter_153" Property="Visibility" Value="Collapsed" TargetName="Icon"/>
						</Trigger>
						
						<Trigger x:Uid="Trigger_53" Property="AllowsTransparency" SourceName="SubMenuPopup" Value="true">
							<Setter x:Uid="Setter_154" Property="Margin" Value="0,0,3,3" TargetName="SubMenu"/>
							<Setter x:Uid="Setter_155" Property="SnapsToDevicePixels" Value="true" TargetName="SubMenu"/>
							<Setter x:Uid="Setter_156" Property="BitmapEffect" Value="{DynamicResource PopupDropShadow}" TargetName="SubMenuBorder"/>
						</Trigger>
						
						<!-- Using the system colors for the Menu Highlight and IsEnabled-->
						<Trigger x:Uid="Trigger_54" Property="IsHighlighted" Value="true">
							<Setter x:Uid="Setter_157" Property="Background" Value="{DynamicResource {x:Static SystemColors.HighlightBrushKey}}" TargetName="Border"/>
							<Setter x:Uid="Setter_158" Property="Foreground" Value="{DynamicResource {x:Static SystemColors.HighlightTextBrushKey}}"/>
						</Trigger>
						<Trigger x:Uid="Trigger_55" Property="IsEnabled" Value="false">
							<Setter x:Uid="Setter_159" Property="Foreground" Value="{DynamicResource {x:Static SystemColors.GrayTextBrushKey}}"/>
						</Trigger>
					</ControlTemplate.Triggers>
				</ControlTemplate>
			</Setter.Value>
		</Setter>
	</Style>
	
	<!-- Simple Separator - This template is used for a Separator in a menu --> 
	<Style x:Uid="Style_22" x:Key="SimpleSeparator" TargetType="{x:Type Separator}">
		<Setter x:Uid="Setter_160" Property="Height" Value="1"/>
		<Setter x:Uid="Setter_161" Property="Margin" Value="0,2,0,2"/>
		<Setter x:Uid="Setter_162" Property="Focusable" Value="false"/>
		<Setter x:Uid="Setter_163" Property="Template">
			<Setter.Value>
				<ControlTemplate x:Uid="ControlTemplate_25" TargetType="{x:Type Separator}">
					<Border x:Uid="Border_14" BorderBrush="{DynamicResource SolidBorderBrush}" BorderThickness="1"/>
				</ControlTemplate>
			</Setter.Value>
		</Setter>
	</Style>

	<!-- Simple TabControl 
	This template uses Simple TabItem for each Tab. The TabItems are placed in the TabPanel
	Limitations : The Simple TabControl only allow the Tabs to be shown at the top of the Tab control. You can re-position the TabPanel to change this-->
	
	<Style x:Uid="Style_23" x:Key="SimpleTabControl" TargetType="{x:Type TabControl}">
		<Setter x:Uid="Setter_164" Property="Template">
			<Setter.Value>
				<ControlTemplate x:Uid="ControlTemplate_26" TargetType="{x:Type TabControl}">
					<Grid x:Uid="Grid_22" KeyboardNavigation.TabNavigation="Local">
						<Grid.RowDefinitions>
							<RowDefinition x:Uid="RowDefinition_7" Height="Auto"/>
							<RowDefinition x:Uid="RowDefinition_8" Height="*"/>
						</Grid.RowDefinitions>
						
						<!-- TabPanel is a layout container which allows the TabItems to wrap and re-order when selected
						The implementation knows to use this control because it is marked IsItemsHost = True -->
						<TabPanel x:Uid="HeaderPanel" Grid.Row="0" Margin="0,0,4,-1" x:Name="HeaderPanel" Background="Transparent" IsItemsHost="True" Panel.ZIndex="1" KeyboardNavigation.TabIndex="1"/>
						
						<Border x:Uid="Border_15" Grid.Row="1" x:Name="Border" Background="{DynamicResource WindowBackgroundBrush}" BorderBrush="{DynamicResource SolidBorderBrush}" BorderThickness="1" CornerRadius="2" KeyboardNavigation.DirectionalNavigation="Contained" KeyboardNavigation.TabNavigation="Local" KeyboardNavigation.TabIndex="2">
							
							<!-- The implementation switches the content. This control must be named PART_SelectedContentHost -->
							<ContentPresenter x:Uid="PART_SelectedContentHost" Margin="4" x:Name="PART_SelectedContentHost" ContentSource="SelectedContent"/>
							
						</Border>
					</Grid>
					
					<ControlTemplate.Triggers>
						<Trigger x:Uid="Trigger_56" Property="IsEnabled" Value="False">
							<Setter x:Uid="Setter_165" Property="Foreground" Value="{DynamicResource DisabledForegroundBrush}"/>
							<Setter x:Uid="Setter_166" Property="BorderBrush" Value="{DynamicResource DisabledBorderBrush}" TargetName="Border"/>
						</Trigger>
					</ControlTemplate.Triggers>
				
				</ControlTemplate>
			</Setter.Value>
		</Setter>
	</Style>
	
	<!--Simple TabItem -->
	<Style x:Uid="Style_24" x:Key="SimpleTabItem" d:IsControlPart="True" TargetType="{x:Type TabItem}">
		<Setter x:Uid="Setter_167" Property="Template">
			<Setter.Value>
				<ControlTemplate x:Uid="ControlTemplate_27" TargetType="{x:Type TabItem}">
					<Grid x:Uid="Grid_23">
						<Border x:Uid="Border_16" Margin="0,0,-4,0" x:Name="Border" Background="{DynamicResource LightBrush}" BorderBrush="{DynamicResource SolidBorderBrush}" BorderThickness="1,1,1,1" CornerRadius="2,12,0,0">
							<ContentPresenter x:Uid="ContentPresenter_9" HorizontalAlignment="Center" Margin="12,2,12,2" x:Name="ContentSite" VerticalAlignment="Center" RecognizesAccessKey="True" ContentSource="Header"/>
						</Border>
					</Grid>
					<ControlTemplate.Triggers>
						<Trigger x:Uid="Trigger_57" Property="IsSelected" Value="True">
							<Setter x:Uid="Setter_168" Property="Panel.ZIndex" Value="100"/>
							<Setter x:Uid="Setter_169" Property="Background" Value="{DynamicResource WindowBackgroundBrush}" TargetName="Border"/>
							<Setter x:Uid="Setter_170" Property="BorderThickness" Value="1,1,1,0" TargetName="Border"/>
						</Trigger>
						<Trigger x:Uid="Trigger_58" Property="IsEnabled" Value="False">
							<Setter x:Uid="Setter_171" Property="Background" Value="{DynamicResource DisabledBackgroundBrush}" TargetName="Border"/>
							<Setter x:Uid="Setter_172" Property="BorderBrush" Value="{DynamicResource DisabledBorderBrush}" TargetName="Border"/>
							<Setter x:Uid="Setter_173" Property="Foreground" Value="{DynamicResource DisabledForegroundBrush}"/>
						</Trigger>
					</ControlTemplate.Triggers>
				</ControlTemplate>
			</Setter.Value>
		</Setter>
	</Style>
	
	<!--Simple Simple SliderThumb - The Thumb is the draggable part of a Slider-->
	<Style x:Uid="Style_25" x:Key="SimpleSliderThumb" d:IsControlPart="True" TargetType="{x:Type Thumb}">
		<Setter x:Uid="Setter_174" Property="SnapsToDevicePixels" Value="true"/>
		<Setter x:Uid="Setter_175" Property="Height" Value="14"/>
		<Setter x:Uid="Setter_176" Property="Width" Value="14"/>
		<Setter x:Uid="Setter_177" Property="Template">
			<Setter.Value>
				<ControlTemplate x:Uid="ControlTemplate_28" TargetType="{x:Type Thumb}">
					<Grid x:Uid="Grid_24">
						<Ellipse x:Uid="Ellipse" x:Name="Ellipse" Fill="{DynamicResource NormalBrush}" Stroke="{DynamicResource NormalBorderBrush}" StrokeThickness="1"/>
					</Grid>
					<ControlTemplate.Triggers>
						<Trigger x:Uid="Trigger_59" Property="IsMouseOver" Value="True">
							<Setter x:Uid="Setter_178" Property="Fill" Value="{DynamicResource MouseOverBrush}" TargetName="Ellipse"/>
						</Trigger>
						<Trigger x:Uid="Trigger_60" Property="IsEnabled" Value="false">
							<Setter x:Uid="Setter_179" Property="Fill" Value="{DynamicResource DisabledBackgroundBrush}" TargetName="Ellipse"/>
						</Trigger>
					</ControlTemplate.Triggers>
				</ControlTemplate>
			</Setter.Value>
		</Setter>
	</Style>
	
	<!--Simple Simple Slider
	Similiar to ScrollBar this template uses Track to layout the draggable Thumb which has an up and down repeat button
	It uses Simple SliderThumb and SimpleScrollRepeatButtonStyle for the page up and down repeat buttons -->
	<Style x:Uid="Style_26" x:Key="SimpleSlider" TargetType="{x:Type Slider}">
		<Setter x:Uid="Setter_180" Property="Background" Value="{DynamicResource LightBrush}"/>
		<Setter x:Uid="Setter_181" Property="BorderBrush" Value="{DynamicResource NormalBorderBrush}"/>
		<Setter x:Uid="Setter_182" Property="Template">
			<Setter.Value>
				<ControlTemplate x:Uid="ControlTemplate_29" TargetType="{x:Type Slider}">
					<Grid x:Uid="Grid_25" x:Name="GridRoot">
						<Grid.RowDefinitions>
							<RowDefinition x:Uid="RowDefinition_9" Height="Auto"/>
							<RowDefinition x:Uid="RowDefinition_10" Height="Auto" MinHeight="{TemplateBinding MinHeight}"/>
							<RowDefinition x:Uid="RowDefinition_11" Height="Auto"/>
						</Grid.RowDefinitions>
						
						<!-- TickBar shows the ticks for Slider -->
						<TickBar x:Uid="TopTick" Visibility="Collapsed" x:Name="TopTick" Height="4" SnapsToDevicePixels="True" Placement="Top" Fill="{DynamicResource GlyphBrush}"/>
						<Border x:Uid="Border_17" Grid.Row="1" Margin="0" x:Name="Border" Height="4" Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" CornerRadius="2"/>
						
						<!-- The Track lays out the repeat buttons and thumb -->
						<Track x:Uid="Track_1" Grid.Row="1" x:Name="PART_Track">
							<Track.Thumb>
								<Thumb x:Uid="Thumb_2" Style="{DynamicResource SimpleSliderThumb}"/>
							</Track.Thumb>
							<Track.IncreaseRepeatButton>
								<RepeatButton x:Uid="RepeatButton_1" Style="{DynamicResource SimpleScrollRepeatButtonStyle}" Command="Slider.IncreaseLarge"/>
							</Track.IncreaseRepeatButton>
							<Track.DecreaseRepeatButton>
								<RepeatButton x:Uid="RepeatButton_2" Style="{DynamicResource SimpleScrollRepeatButtonStyle}" Command="Slider.DecreaseLarge"/>
							</Track.DecreaseRepeatButton>
						</Track>
						
						<TickBar x:Uid="BottomTick" Visibility="Collapsed" Grid.Row="2" x:Name="BottomTick" Height="4" SnapsToDevicePixels="True" Placement="Bottom" Fill="{TemplateBinding Foreground}"/>
					</Grid>
					<ControlTemplate.Triggers>
						<Trigger x:Uid="Trigger_61" Property="TickPlacement" Value="TopLeft">
							<Setter x:Uid="Setter_183" Property="Visibility" Value="Visible" TargetName="TopTick"/>
						</Trigger>
						<Trigger x:Uid="Trigger_62" Property="TickPlacement" Value="BottomRight">
							<Setter x:Uid="Setter_184" Property="Visibility" Value="Visible" TargetName="BottomTick"/>
						</Trigger>
						<Trigger x:Uid="Trigger_63" Property="TickPlacement" Value="Both">
							<Setter x:Uid="Setter_185" Property="Visibility" Value="Visible" TargetName="TopTick"/>
							<Setter x:Uid="Setter_186" Property="Visibility" Value="Visible" TargetName="BottomTick"/>
						</Trigger>
						<Trigger x:Uid="Trigger_64" Property="IsEnabled" Value="false">
							<Setter x:Uid="Setter_187" Property="Background" Value="{DynamicResource DisabledBackgroundBrush}" TargetName="Border"/>
							<Setter x:Uid="Setter_188" Property="BorderBrush" Value="{DynamicResource DisabledBorderBrush}" TargetName="Border"/>
						</Trigger>
						
						<!-- Use a rotation to create a Vertical Slider form the default Horizontal -->
						<Trigger x:Uid="Trigger_65" Property="Orientation" Value="Vertical">
							<Setter x:Uid="Setter_189" Property="LayoutTransform" TargetName="GridRoot">
								<Setter.Value>
									<RotateTransform x:Uid="RotateTransform_2" Angle="-90"/>
								</Setter.Value>
							</Setter>
							<!-- Track rotates itself based on orientation so need to force it back -->
							<Setter x:Uid="Setter_190" TargetName="PART_Track" Property="Orientation" Value="Horizontal"/>
						</Trigger>
						
					</ControlTemplate.Triggers>
				</ControlTemplate>
			</Setter.Value>
		</Setter>
	</Style>
	
	<!--Simple Tree View - This lays out TreeViewItems within a ScrollViewer -->
	<Style x:Uid="Style_27" x:Key="SimpleTreeView" TargetType="{x:Type TreeView}">
		<Setter x:Uid="Setter_191" Property="Template">
			<Setter.Value>
				<ControlTemplate x:Uid="ControlTemplate_30" TargetType="{x:Type TreeView}">
					<Grid x:Uid="Grid_26">
						<Border x:Uid="Border_18" x:Name="Border" Background="{DynamicResource WindowBackgroundBrush}" BorderBrush="{DynamicResource SolidBorderBrush}" BorderThickness="1" CornerRadius="1">
							<ScrollViewer x:Uid="ScrollViewer_4" Style="{DynamicResource SimpleScrollViewer}" Focusable="False" Background="{TemplateBinding Background}" Padding="4" HorizontalScrollBarVisibility="Auto" VerticalScrollBarVisibility="Auto" CanContentScroll="False">
								<ItemsPresenter x:Uid="ItemsPresenter_1"/>
							</ScrollViewer>
						</Border>
					</Grid>
				</ControlTemplate>
			</Setter.Value>
		</Setter>
	</Style>
	
	<!--Simple TreeViewItem ToggleButton - + and - button to expand and collapse a TreeViewItem -->
	<Style x:Uid="Style_28" x:Key="SimpleTreeViewItemToggleButton" d:IsControlPart="True" TargetType="{x:Type ToggleButton}">
		<Setter x:Uid="Setter_192" Property="Focusable" Value="False"/>
		<Setter x:Uid="Setter_193" Property="Template">
			<Setter.Value>
				<ControlTemplate x:Uid="ControlTemplate_31" TargetType="{x:Type ToggleButton}">
					<Grid x:Uid="Grid_27" Width="15" Height="13" Background="Transparent">
						<Path x:Uid="IsExpandedPath" Visibility="Collapsed" HorizontalAlignment="Left" Margin="1,1,1,1" x:Name="IsExpandedPath" VerticalAlignment="Center" Fill="{DynamicResource GlyphBrush}" Data="M 0 4 L 8 4 L 4 8 Z"/>
						<Path x:Uid="ExpandPath" HorizontalAlignment="Left" Margin="1,1,1,1" x:Name="ExpandPath" VerticalAlignment="Center" Fill="{DynamicResource GlyphBrush}" Data="M 4 0 L 8 4 L 4 8 Z"/>
					</Grid>
					<ControlTemplate.Triggers>
						<Trigger x:Uid="Trigger_66" Property="IsChecked" Value="True">
							<Setter x:Uid="Setter_194" Property="Visibility" Value="Visible" TargetName="IsExpandedPath"/>
							<Setter x:Uid="Setter_195" Property="Visibility" Value="Collapsed" TargetName="ExpandPath"/>
						</Trigger>
					</ControlTemplate.Triggers>
				</ControlTemplate>
			</Setter.Value>
		</Setter>
	</Style>
	
	<!--Simple TreeViewItem - The TreeViewItem template has a header which shows the Item and a Body which is an ItemsHost control which expands to show child items-->
	<Style x:Uid="Style_29" x:Key="SimpleTreeViewItem" d:IsControlPart="True" TargetType="{x:Type TreeViewItem}">
		<Setter x:Uid="Setter_196" Property="Background" Value="Transparent"/>
		<Setter x:Uid="Setter_197" Property="HorizontalContentAlignment" Value="{Binding Path=HorizontalContentAlignment, RelativeSource={RelativeSource AncestorType={x:Type ItemsControl}}}"/>
		<Setter x:Uid="Setter_198" Property="VerticalContentAlignment" Value="{Binding Path=VerticalContentAlignment, RelativeSource={RelativeSource AncestorType={x:Type ItemsControl}}}"/>
		<Setter x:Uid="Setter_199" Property="Padding" Value="1,0,0,0"/>
		<Setter x:Uid="Setter_200" Property="Template">
			<Setter.Value>
				<ControlTemplate x:Uid="ControlTemplate_32" TargetType="{x:Type TreeViewItem}">
					<Grid x:Uid="Grid_28">
						<Grid.ColumnDefinitions>
							<ColumnDefinition x:Uid="ColumnDefinition_11" MinWidth="19" Width="Auto"/>
							<ColumnDefinition x:Uid="ColumnDefinition_12" Width="Auto"/>
							<ColumnDefinition x:Uid="ColumnDefinition_13" Width="*"/>
						</Grid.ColumnDefinitions>
						<Grid.RowDefinitions>
							<RowDefinition x:Uid="RowDefinition_12" Height="Auto"/>
							<RowDefinition x:Uid="RowDefinition_13"/>
						</Grid.RowDefinitions>
						<ToggleButton x:Uid="Expander" x:Name="Expander" Style="{DynamicResource SimpleTreeViewItemToggleButton}" IsChecked="{Binding Path=IsExpanded, RelativeSource={RelativeSource TemplatedParent}}" ClickMode="Press"/>
						<Border x:Uid="Selection_Border" Grid.Column="1" x:Name="Selection_Border" Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Padding="{TemplateBinding Padding}">
							<ContentPresenter x:Uid="PART_Header" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" x:Name="PART_Header" ContentSource="Header"/>
						</Border>
						<ItemsPresenter x:Uid="ItemsHost" Grid.Column="1" Grid.ColumnSpan="2" Grid.Row="1" x:Name="ItemsHost"/>
					</Grid>
					<ControlTemplate.Triggers>
						<Trigger x:Uid="Trigger_67" Property="IsExpanded" Value="false">
							<Setter x:Uid="Setter_201" Property="Visibility" Value="Collapsed" TargetName="ItemsHost"/>
						</Trigger>
						<Trigger x:Uid="Trigger_68" Property="HasItems" Value="false">
							<Setter x:Uid="Setter_202" Property="Visibility" Value="Hidden" TargetName="Expander"/>
						</Trigger>
						<Trigger x:Uid="Trigger_69" Property="IsSelected" Value="true">
							<Setter x:Uid="Setter_203" Property="Background" Value="{DynamicResource {x:Static SystemColors.HighlightBrushKey}}" TargetName="Selection_Border"/>
							<Setter x:Uid="Setter_204" Property="Foreground" Value="{DynamicResource {x:Static SystemColors.HighlightTextBrushKey}}"/>
						</Trigger>
						<MultiTrigger x:Uid="MultiTrigger_1">
							<MultiTrigger.Conditions>
								<Condition x:Uid="Condition_1" Property="IsSelected" Value="true"/>
								<Condition x:Uid="Condition_2" Property="IsSelectionActive" Value="false"/>
							</MultiTrigger.Conditions>
							<Setter x:Uid="Setter_205" Property="Background" Value="{DynamicResource {x:Static SystemColors.ControlBrushKey}}" TargetName="Selection_Border"/>
							<Setter x:Uid="Setter_206" Property="Foreground" Value="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}"/>
						</MultiTrigger>
						<Trigger x:Uid="Trigger_70" Property="IsEnabled" Value="false">
							<Setter x:Uid="Setter_207" Property="Foreground" Value="{DynamicResource {x:Static SystemColors.GrayTextBrushKey}}"/>
						</Trigger>
					</ControlTemplate.Triggers>
				</ControlTemplate>
			</Setter.Value>
		</Setter>
	</Style>
</ResourceDictionary>
